export async function GET(app,url,params){
    let res:object = null;
    try {
        res = await app.$http.get(url,params);
    } catch (err:any) {
        throw new Error(err);
    }
    return res;
}

export async function POST(app,url,data){
    let res:object = null;
    try {
        res = await app.$http.post(url, data);
    } catch (err:any) {
        throw new Error(err);
    }
    return res;
}